package org.loujiarong.yugioh.effect;

import java.util.Iterator;
import java.util.List;

import org.loujiarong.yugioh.gameplay.card.Card;
import org.loujiarong.yugioh.gameplay.effect.Effect;


public class RemoveFromPlay extends Effect
{
   public void activate(List<Card> cardList) {
      Iterator<Card> itr = cardList.iterator();
      while (itr.hasNext()) {
         Card card = itr.next();
         card.getOwner().getField().remove(card);
         card.getOwner().getRemovedFromPlayArea().add(card);
      }
   }
}
